﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Decisions.HL7.Parser
{
    public interface IMSHDataGenerator {

        string GetNextControlId();
        string GetSendingFacility();

    }

    public static class MSHDataGeneratorRegistry
    {
        private static IMSHDataGenerator internalCreator;

        public static IMSHDataGenerator Generator
        {

            get
            {

                if (internalCreator == null)
                {

                    internalCreator = new DefaultMSHDataGenerator();

                }
                return internalCreator;

            }
            set
            {
                internalCreator = value;
            }
        }

    }
}
